package com.aaa.controller;

import com.aaa.entity.ContractExpire;
import com.aaa.entity.Result;
import com.aaa.service.IContractExpireService;
import org.apache.http.annotation.Contract;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：李世磊
 * @date ：Created in 2021/1/29 21:04
 * @description： 出租合同到期控制器
 * @modified By：
 * @version: 1.0
 */
@RestController
@RequestMapping("/expireLease")
public class ContractExpireLeaseController {

    @Autowired
    IContractExpireService service;

    /**
     *  出租合同到期 查询所有
     */

    @RequestMapping("/listAll")
    public Result listAllExpireLease(){

        return service.listAllExpireLease();
    }

}
